package Exceptions;

public class Dog extends Animal
{

	@Override
	void calculate() 
	{
		try{
		int a = 3;
		int b = 0;
		System.out.println("dog");
		System.out.println(a/b);
		}
		catch (ArithmeticException ar)
		{
			System.out.println("cause " + ar.getCause());
			System.out.println("class " + ar.getClass());
			 ar.printStackTrace();
			System.out.println("dogggg");
		}
	}

}
